load("@rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "cmd",
    srcs = [
        "helpers.go",
        "root.go",
        "testCmd.go",
        "testListCmd.go",
        "testnetCmd.go",
        "testnetCreateCmd.go",
        "testnetListCmd.go",
    ],
    importpath = "github.com/dfinity/ic/rs/tests/ict/cmd",
    visibility = ["//visibility:public"],
    deps = [
        # Keep sorted.
        "@com_github_fatih_color//:color",
        "@com_github_schollz_closestmatch//:closestmatch",
        "@com_github_spf13_cobra//:cobra",
    ],
)

go_test(
    name = "cmd_test",
    srcs = ["cmd_test.go"],
    deps = [
        # Keep sorted.
        ":cmd",
        "@com_github_stretchr_testify//assert",
    ],
)
